package com.cow.support.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cow.framework.core.base.BaseComponent;
import com.cow.support.dao.OrgDAO;
import com.cow.support.entity.Orginfo;

@Service
public class OrgService extends BaseComponent{
	@Autowired
	private OrgDAO orgDao;	
	public List<Orginfo> getAllOgr() {
		return orgDao.findAll();
	}
	
	public void setOrgDAO(OrgDAO Org) {
		this.orgDao = Org;
	}

	public List<Orginfo> getOrg(Orginfo orgInfo) {
		// TODO Auto-generated method stub
		return null;
	}

	public Orginfo getOrgByID(Integer orgID) {
		// TODO Auto-generated method stub
		return (Orginfo)orgDao.findOne(orgID);
	}
}
